package com.ocom.xcxapi.controller;

import com.ocom.common.constant.CompanyServiceUrl;
import com.ocom.common.resp.Result;
import com.ocom.xcxapi.service.AccessService;
import com.ocom.xcxapi.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@PreAuthorize("hasRole('ROLE_XCX')")
@RestController
public class MacListController {

    @Autowired
    private AccessService accessService;

    /**
     * 2.8.获取用户设备列表 menjin/getMacList
     * */
    @GetMapping(CompanyServiceUrl.URL_MenjinGetMacList)
    public Result MenjinGetMacList(Long comId,Long pId){
        return accessService.MenjinGetMacList(comId,pId);
    }
}
